﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace DbMetadata.Providers.SqlServer
{
    public class SqlMetadataProviderFactory : IDbMetadataProviderFactory
    {
        public DbMetadataProvider CreateMetadataProvider(IDbConnection dbConnection)
        {
            return new DbMetadataProvider(new SqlMetadataExtractor(dbConnection),new SqlTypeMapper());
        }

        public string ConnectionTypeName
        {
            get { return "System.Data.SqlClient.SqlConnection"; }
        }
    }
}
